home *** CD-ROM | disk | FTP | other *** search
/ World of Education / World of Education.iso / world_f / fdplot.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-03-10  |  2KB  |  68 lines

  1. @echo off
  2. cls
  3. rem --- make sure the user specified valid drive letter (we allow C to F).
  4. if %1a == a goto noDriveSpecified
  5. if %1 == c: goto begin
  6. if %1 == C: goto begin
  7. if %1 == d: goto begin
  8. if %1 == D: goto begin
  9. if %1 == e: goto begin
  10. if %1 == E: goto begin
  11. if %1 == f: goto begin
  12. if %1 == F: goto begin
  13. if %2 == a: goto floppy
  14. if %2 == A: goto floppy
  15. if %2 == b: goto floppy
  16. if %2 == B: goto floppy
  17. Goto notOnThatDrive
  18. :begin
  19.  
  20. echo ┌─┐
  21. echo │ │                ATI FDplot Software Installation
  22. echo │ │
  23. echo │I│  You may install the FDplot software anywhere you wish by simply
  24. echo │N│  creating a directory of your choice and then copying the files to
  25. echo │S│  it - except install.bat.
  26. echo │T│                       BUT! if you want:
  27. echo │A│  This will create a directory called %1\PLOT  on your hard disk,
  28. echo │L│  and will install FDplot in that directory from this diskette.
  29. echo │L│  If you don't want to install FDplot right now, press Ctrl-Break.
  30. echo │ │
  31. echo └─┘
  32. pause
  33.  
  34. rem --- create \PLOT  on the current drive.
  35. echo 
  36. echo Creating directory %1\PLOT...
  37. md %1\PLOT
  38. echo 
  39. echo Copying FDplot files...
  40. copy readme.doc %1\PLOT
  41. copy install.bat %1\PLOT
  42. copy *.bas %1\PLOT
  43. copy *.exe  %1\PLOT
  44. copy register %1\PLOT
  45. echo                  * Installation Complete - Remove Disk*
  46. %1
  47. cd %1\PLOT
  48. setup
  49. goto end
  50.  
  51. :noDriveSpecified
  52. rem --- user didn't specify a drive letter followed by a colon.
  53. echo 
  54. echo               How to use INSTALL: 
  55. echo  To install software on your hard disk, specify the drive to install 
  56. echo  FDplot onto.  For example, to install FDplot on drive C, type 
  57. echo   "INSTALL C:" and press Enter.
  58. goto end
  59.  
  60. :notOnThatDrive
  61. rem --- user specified invalid drive letter.
  62. echo 
  63. echo  Installation Error: The hard drive letter must be a letter from C to F,
  64. echo  and must be followed by a colon.  For example, "INSTALL C:" will install
  65. echo  FDplot on drive C.
  66. :end
  67. echo 
  68.